import { defHttp } from '@/utils/http/axios';
import { IMemberInfo } from './type';
import { BasicFetchResult } from '@/api/model/baseModel';

enum Api {
  getIntendedMember = '/mall/op/op-intention-apply/list',
  getSassIntention = '/admin/saas-intention-apply/list',
  getFuaiqiIntended = '/admin/saas-enterprisePropaganda-apply/list'
}
/**
 * 会邦云信息收集
 * @param params 
 * @returns 
 */
export function getIntendedMember(params) {
  return defHttp.get<BasicFetchResult<IMemberInfo>>({
    url: Api.getIntendedMember,
    params,
  });
}

/**
 * sass合作邀约
 * @param params 
 * @returns 
 */
export function getSassIntention(params) {
  return defHttp.get<BasicFetchResult<IMemberInfo>>({
    url: Api.getSassIntention,
    params,
  });
}

/**
 * 福i企信息收集
 * @param params 
 * @returns 
 */
export function getFuaiqiIntended(params) {
  return defHttp.get<BasicFetchResult<IMemberInfo>>({
    url: Api.getFuaiqiIntended,
    params,
  });
}